package com.ruoyi.project.stop.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 船舶信息录入对象 ship_record
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public class ShipRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 船舶名称 */
    @Excel(name = "船舶名称")
    private String shipName;

    /** 排水量 */
    @Excel(name = "排水量")
    private Long shipTon;

    /** 船籍 */
    @Excel(name = "船籍")
    private String shipNation;

    /** 宽 */
    @Excel(name = "宽")
    private BigDecimal shipWidth;

    /** 长 */
    @Excel(name = "长")
    private BigDecimal shipLong;

    /** 靠泊时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "靠泊时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date berthTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setShipName(String shipName)
    {
        this.shipName = shipName;
    }

    public String getShipName()
    {
        return shipName;
    }

    public void setShipTon(Long shipTon)
    {
        this.shipTon = shipTon;
    }

    public Long getShipTon()
    {
        return shipTon;
    }

    public void setShipNation(String shipNation)
    {
        this.shipNation = shipNation;
    }

    public String getShipNation()
    {
        return shipNation;
    }

    public void setShipWidth(BigDecimal shipWidth)
    {
        this.shipWidth = shipWidth;
    }

    public BigDecimal getShipWidth()
    {
        return shipWidth;
    }

    public void setShipLong(BigDecimal shipLong)
    {
        this.shipLong = shipLong;
    }

    public BigDecimal getShipLong()
    {
        return shipLong;
    }

    public void setBerthTime(Date berthTime)
    {
        this.berthTime = berthTime;
    }

    public Date getBerthTime()
    {
        return berthTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shipName", getShipName())
            .append("shipTon", getShipTon())
            .append("shipNation", getShipNation())
            .append("shipWidth", getShipWidth())
            .append("shipLong", getShipLong())
            .append("berthTime", getBerthTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
